/**
 * Created by Administrator on 2016/7/17.
 */
window.onload = function() {
	window.onresize = changeHeaderHeght;
	changeHeaderHeght();
}
function changeHeaderHeght() {
	$('.header-height').css("height", $('.header').height());
}
$(function() {
	$("#search-button").click(function() {
		var ctx=$("#ctx").val();
		var param=$("#search-input").val();
		if(param=='')
		{}
		else{
		window.location.href=ctx+"/search/"+param+".do";}			
	});
});
